# from apscheduler.schedulers.background import BackgroundScheduler
# from django_apscheduler.jobstores import DjangoJobStore,register_events,register_job
#
# #实例化定时任务对象
# aps=BackgroundScheduler()
# #使用默认的
# aps.add_jobstore(DjangoJobStore(),'default')
#
# @register_job(aps,'interval',id='doubanspider',minute=2)
# def doubanspider():
#     print('111')
#     pass
#
# #renwukaishi
#
# register_events(aps)
# aps.start()